package com.zwj;

import com.zwj.config.listener.application.ApplicationEventListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author zwj
 * @Description: 启动类
 * @date 2022/5/7 2:12 下午
 */
@SpringBootApplication
@MapperScan("com.zwj.mapper")//扫描 Mapper 文件夹
public class MyApp {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(MyApp.class);
        app.addListeners(new ApplicationEventListener());
        app.run(args);
    }
}
